/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    ScrollView
} from 'react-native';
var LazyJoin = require('../Join/LazyJoin'); //Join
var TopBanner = require('../../Comment/TopBanner');
var TitleWrap = require('../../Comment/TitleWrap');
var LazyFindCell = require('./LazyFindCell');
var LazyFindList = require('./LazyFindList');
var LazyFind = React.createClass({
    render() {
        return (
            <View style={styles.container}>
                <TopBanner
                    leftIcon="back"
                    title="发现"
                    rightTitle="写游记"
                    leftPress={()=>{this.props.navigator.pop();this.props._callback(null);}}
                />
                <ScrollView style={{padding:10,paddingTop:0}}>
                    <TitleWrap/>
                    <LazyFindList/>
                </ScrollView>
            </View>
        );
    },
    _navigate() {
        this.props.navigator.push({
            component:LazyJoin,
            passProps:{
                _callback:(arg)=>this.hideTabbar(arg)
            }
        });
        this.props._callback(0);
    },
});
const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#e7fdff',
    },
});
module.exports = LazyFind;